#include "MQueue.h"
int main(int argc, char* argv[])
{
  CMQueue cmq(10);

  TMsg t_recv;
  time_t start = time(NULL);
  time_t end = time(NULL);
  for(int i = 0;i<10000000;i++)
  {
    cmq.recv_msg(&t_recv);
    end = time(NULL);
    if(end - start != 0)
    {
      printf("recv speed %d/s\n", i);
      start = end;
      i = 0;
    }
  }
  return 0;
}
